//
//  JMRepaymentModel.h
//  NewiOSProject
//
//  Created by JMMac on 18.1.24.
//  Copyright © 2024 范智渊. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JMOrderInfoModel.h"

NS_ASSUME_NONNULL_BEGIN
@interface PayCodeModel : NSObject
///用户选择的还款方式type   1:BANCOS (STP,OPM,Transfer 或其他) 2:OXXO 3:OpenPay （支付用户选择支付类型时赋值）父类的payType是总这里取的
@property (nonatomic, assign) NSInteger payType;
///还款条形码
@property (nonatomic, copy) NSString *barcodeUrlAlfa;
///过期时间
@property (nonatomic, copy) NSString *expireTime;
///提示语
@property (nonatomic, copy) NSString *hint;
///还款码
@property (nonatomic, copy) NSString *paymentCode;
///1.openpayCode有OXXO值优先取，优先放右边
///2.还款码列表（repaymentCodeList）左边取里边不是OXXO的内容，只会存在STP或OPM中的一种
///3.repaymentCodeList返回两个OXXO，则左右两边都展示OXXO
@property (nonatomic, copy) NSString *repaymentBank;
///还款指引
///还款指引字段解析repaymentLead中的数据（Html格式）之后填入
@property (nonatomic, copy) NSString *repaymentLead;


//MARK: - 自增字段
///还款银行（OXXO ，STP，OPM）
///还款详情接口中，repaymentBank字段值是OXXO的为oxxo的还款码，另一值为bancos的还款码
///打点所需支付方式typeString（根据payType判断）
@property (nonatomic, copy) NSString *payTypeString;
@property (nonatomic, assign)BOOL isSelected;

@end





@interface delayTermModel : NSObject
///延期周期集合
@property (nonatomic, copy) NSArray<NSNumber *> *delayList;
///延期默认值
@property (nonatomic, copy) NSNumber *defaultValue;
@end

@interface JMRepaymentModel : NSObject


//MARK: - 付款-还款码
///还款码 ios专用
@property (nonatomic, strong) PayCodeModel *openPayCode;
///还款码列表
@property (nonatomic, strong) NSArray<PayCodeModel*> *repaymentCodeList;
///应用名
@property (nonatomic, copy) NSString *appName;
///当前所需还款额
@property (nonatomic, strong) NSNumber *amount;








//MARK: - 自增字段（非接口字段，方便根据判断取值使用）
@property (nonatomic, strong) JMOrderInfoModel *infoModel;
@property (nonatomic, strong) JMExtenDetailModel *extModel;
@property (nonatomic, assign) NSInteger payType;
///打点所需贷款状态type（根据status判断）
@property (nonatomic, copy) NSString *LoanType;
///打点所需支付方式typeString（根据payType判断）
@property (nonatomic, copy) NSString *payTypeString;
///是openPayCode里或repaymentCodeList的一个
@property (nonatomic, strong) PayCodeModel *leftPayModel;
///是openPayCode里只可能是OXXO,或repaymentCodeList的一个可能是任意类型
@property (nonatomic, strong) PayCodeModel *rightModel;
///当前选中model
@property (nonatomic, strong) PayCodeModel *currentModel;

@end

NS_ASSUME_NONNULL_END
